import request from "@/utils/request.js";


const baseUrl = '/admin/publicity'

export const getPublicityListService = (data) => {
    return request({
        method: 'GET',
        url: `${baseUrl}/${data.page}/${data.size}`
    })
}

export const removePublicityService = (id) => {
    return request({
        method: 'DELETE',
        url: `${baseUrl}/${id}`
    })
}

export const addPublicityService = (data) => {
    return request({
        method: 'POST',
        url: `${baseUrl}`,
        data
    })
}
